package com.chen.user.service;


import com.chen.user.mapper.HomeCardMapper;
import com.chen.user.response.HomeRoomCardResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeCardService {

    @Autowired
    private HomeCardMapper homeCardMapper;

    public List<HomeRoomCardResponse> getHomeCardPage() {

       List<HomeRoomCardResponse> homeRoomCardResponseList= homeCardMapper.getHomeCardPage();
       return homeRoomCardResponseList;


    }

    public List<HomeRoomCardResponse> selectCategoryPage(String categoryName) {
       List<HomeRoomCardResponse> homeRoomCardResponseList= homeCardMapper.selectCategoryPage(categoryName);
       return homeRoomCardResponseList;
    }
}
